<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- #Include file="inc/conn.inc" -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../images/css.css" rel="stylesheet" type="text/css">
<title>后台登入</title>

<style>
td{font-size:9pt;line-height:120%;color:#353535} 
body{font-size:9pt;line-height:120%} 

a:link          { color: #000000; text-decoration: none }
a:visited       { color: #000000; text-decoration: none }
a:active        { color: #000000; text-decoration: none }
a:hover         { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>
<noscript><iframe src=*.html></iframe></noscript>
<body bgcolor="#FFFFFF">
<div align="center"></div>
<table cellspacing="0" cellpadding="0" width="555" border="0" style="border-collapse: collapse" bordercolor="#111111" align="center">
  <tbody> 
  <tr> 
    <td width="588"> 
      <div align="center"> 
        <center>
          <table cellspacing="0" cellpadding="0" width="558" border="0" style="border-collapse: collapse" bordercolor="#111111" height="237">
            <tbody> 
            <tr> 
              <td valign="top" width="198" rowspan="4" height="237"> <img height="52" src="images/aaa_1.gif" width="198"><img height="41" src="images/aaa_a1.gif" width="198"><img height="53" src="images/aaa_a2.gif" width="198"><img height="72" src="images/aaa_a3.gif" width="198"></td>
              <td valign="top" height="87" width="360"> <img border="0" src="images/touradmin1.gif" width="253" height="52"><img height="52" src="images/aaa_r4.gif" width="77"> 
                <div align="center"> 
                  <center>
                    <table border="0" cellpadding="2" style="border-collapse: collapse" bordercolor="#111111" width="80%" id="AutoNumber1">
                      <tr> 
                        <td width="100%"> 
                          <p align="right"> <font face="Arial" size="4" color="#000080"> 
                            </font> 
                        </td>
                      </tr>
                    </table>
                  </center>
                </div>
              </td>
            </tr>
            <tr> 
              <td valign="top" width="360" height="104">
                <div align="center"> </div>
                <form name="adminin" method="post" action="login.asp" >
                  <div align="center"> 
                    <div align="center"> 
                      <table border="0" cellspacing="0" cellpadding="0" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
                        <tr> 
                          <td height="29"> <br>
                            <br>
                            <table  width="245" border="0" align="center" cellpadding="1" cellspacing="1">
                              <tr bgcolor="#FFFFFF"> 
                                <td width="59"> 
                                  <div align="left">管理员：</div>
                                </td>
                                <td width="103"> 
                                  <div align="left"> 
                                    <input name="mname" type="text" id="mname" size="14">
                                  </div>
                                </td>
                                <td width="73"> 
                                  <div align="center"> 
                                    <input type="image" border="0" name="submit" src="images/xx.gif" width="54" height="18">
                                  </div>
                                </td>
                              </tr>
                              <tr bgcolor="#FFFFFF"> 
                                <td width="59"> 
                                  <div align="left">密&nbsp;&nbsp;&nbsp;码：</div>
                                </td>
                                <td width="103"> 
                                  <div align="left"> 
                                    <input name="password" type="password" id="password" size="16">
                                  </div>
                                </td>
                                <td width="73"> 
                                  <div align="center"><a href="../net/admin/login.asp"><img src="images/qc.gif" width="54" height="18" border="0"></a></div>
                                </td>
                              </tr>
                              <tr bgcolor="#FFFFFF"> 
                                    <td colspan="3" height="28">&nbsp;</td>
                              </tr>
                            </table>
                            <br>
                          </td>
                        </tr>
                      </table>
                    </div>
                  </div>
                </form>
              </td>
            </tr>
            <tr> 
              <td valign="top" width="360" height="36"> 
                <p align="center">
              </td>
            </tr>
            <tr> 
              <td valign="top" width="360" height="10">&nbsp;</td>
            </tr>
            </tbody> 
          </table>
        </center>
      </div>
    </td>
  </tr>
  </tbody> 
</table>
</body>
</html>
<% 
   mname=request("mname")
   if mname="" then
   response.end
   end if
   password=request("password")
   set rs=server.createobject("adodb.recordset")
   sql="select * from manager where mname='"&mname&"' and password='"&password&"'"
   rs.open sql,dbconnection,1,1
   if rs.bof or rs.eof then
   response.write"<SCRIPT language=JavaScript>alert('错误的用户名或密码，请重新输入！');"
   response.write"javascript:history.go(-1)</SCRIPT>"
   else
   types=rs("types")
   session("manager")=mname
   session("types")=types
   if types="超级管理员" or types="普通管理员" then
   response.write"<SCRIPT language=JavaScript>;"
   response.write"this.location.href='index.asp';</SCRIPT>"
   end if
   rs.close                                                                    
   set rs=nothing
   dbconnection.close
   set dbconnection=nothing
   end if 
   %>

